package gui;

import java.awt.Graphics;

import javax.swing.JPanel;

import control.render.RenderController;

public class RenderPanel extends JPanel{
  private static final long serialVersionUID = 9142780558588708764L;
  private RenderController controller;
  
  public RenderPanel(RenderController controller){
    super();
    this.controller = controller;
  }
  
  public void paint(Graphics g){
    if(controller != null)
      g.drawImage(controller.getImage(), 0, 0, null);
  }
}
